package a_Exception;

/**
 * @author Cheng-02
 * @version V1.0
 * @Package a_Exception
 * @date 2024/3/31 下午7:20
 */
public class Test05 {
    public static void main(String[] args) {

    }

    class A {
        public void test() /*throws Exception*/ {
        }
    }

    class B extends A {
        public void test() /*throws Exception //报错啦 */ {
            System.out.println("B");
        }
    }
}
